#pragma once
#include"const.h"
#include<iostream>
#include"boost/asio.hpp"

class MsgNode
{
public:
	MsgNode(short max_len);
	~MsgNode();
	void Clear();

	short _cur_len;
	short _total_len;
	char* _data;
};

class RecvNode :public MsgNode
{
	friend class LogicSystem;
public:
	RecvNode(short max_len,short msg_id);

	short _msg_id;
};

class SendNode :public MsgNode
{
	friend class LogicSystem;
public:
	SendNode(short max_len, const char* data,short msg_id);

	short _msg_id;
};